package game.hero;

public class HeroFactory {
	public static Hero getInstance(int n,String name) {
		Hero hero=null;
		if (n==1) {
			hero=new Sword(name, 50);
		}else if (n==2) {
			hero=new Magic(name, 50);
		}else if (n==3) {
			hero=new Doctor(name, 20);
		}
		return hero;
	}
	
}
